<header id="topbar">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a href="<%= window.location.href %>">推广链接配置</a>
            </li>
        </ol>
    </div>
    <div class="topbar-right">
        <select id="platform" name="platform">
            <option value="android" <%= options.platform == 'android' ? 'selected' : '' %>>Android</option>
            <option value="ios" <%= options.platform == 'ios' ? 'selected' : '' %>>IOS</option>
        </select>
    </div>
</header>
<section id="content">

    <div class="panel">
        <h4 class="mt5 text-muted fw500">推广链接配置：</h4>
        <div class="section mb15">
            <table class="table" id="chnTable">
                <thead>
                    <th>渠道号</th>
                    <th>下载链接</th>
                    <th>操作</th>
                </thead>
                <tbody class="debugTbody">
                    <% _.each(chnLinks, function(v){ %>
                    <tr>
                        <% 
                            var link_url = v["link"]; 
                            var chn = v["chn"];
                        %>
                        <td>
                            <input type="text" class="form-control" value="<%= chn %>" required>
                        </td>
                        <td>
                            <input type="text" class="form-control" value="<%= link_url %>" required>
                        </td>
                        <td>
                            <a class="glyphicons glyphicons-remove_2 onClickDeleteDebug" href="javascript:;"></a>
                        </td>
                    </tr>
                    <% }) %>
                </tbody>
            </table>
            <button class="btn btn-primary btn-sm light fw600 ml10 " type="button" id="addDebug">新增</button>
            <button class="btn btn-primary btn-sm light fw600 ml10" type="button" id="saveDebug">保存</button>
        </div>
    </div>
</section>
